#include "binaryTree.hpp"
#include "tools.hpp"
#include <cstdio>
#include <vector>


int main()
{
    auto& ansi = lxj::OpenANSI::instance();
    ansi.set_mode(1).set_color(76);
    lxj::Time time;
    auto&     random = lxj::Random<int>::instance();

    // std::vector<int> v1{1, 2, 3, 4, 4, 3, 2};
    // std::vector<int> v2{4, 3, 4, 2, 3, 1, 2};
    auto head = lxj::Codec().level_deserialize("3,2,3,#,3,#,1");

    int h = lxj::rob(head);
    std::printf("%d", h);

    lxj::delete_tree(head);

    std::puts("");
    return 0;
}